package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * RD_Task实体类
 * 
 * @author 
 *
 */
public class RdTask {
	/***/
	private Object ID; 
	/***/
	private Integer ReadYear; 
	/***/
	private Integer ReadMonth; 
	/***/
	private Integer VolumeId; 
	/***/
	private Integer EmpId; 
	/**
	 * 实例化
	 */
	public RdTask() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public RdTask(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("ReadYear") instanceof Number) {
			this.setReadYear(((Number) obj.get("ReadYear")).intValue());
		}
		if (obj.get("ReadMonth") instanceof Number) {
			this.setReadMonth(((Number) obj.get("ReadMonth")).intValue());
		}
		if (obj.get("VolumeId") instanceof Number) {
			this.setVolumeId(((Number) obj.get("VolumeId")).intValue());
		}
		if (obj.get("EmpId") instanceof Number) {
			this.setEmpId(((Number) obj.get("EmpId")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getReadYear() != null) {
			result.put("ReadYear",this.getReadYear());
		}
		if (this.getReadMonth() != null) {
			result.put("ReadMonth",this.getReadMonth());
		}
		if (this.getVolumeId() != null) {
			result.put("VolumeId",this.getVolumeId());
		}
		if (this.getEmpId() != null) {
			result.put("EmpId",this.getEmpId());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取ReadYear
	 * 
	 * @return
	 */
	public Integer getReadYear() {
		return ReadYear;
	}

	/**
	 * 设置ReadYear
	 * 
	 * @param ReadYear
	 */
	public void setReadYear(Integer ReadYear) {
		this.ReadYear = ReadYear;
	}
	
	/**
	 * 获取ReadMonth
	 * 
	 * @return
	 */
	public Integer getReadMonth() {
		return ReadMonth;
	}

	/**
	 * 设置ReadMonth
	 * 
	 * @param ReadMonth
	 */
	public void setReadMonth(Integer ReadMonth) {
		this.ReadMonth = ReadMonth;
	}
	
	/**
	 * 获取VolumeId
	 * 
	 * @return
	 */
	public Integer getVolumeId() {
		return VolumeId;
	}

	/**
	 * 设置VolumeId
	 * 
	 * @param VolumeId
	 */
	public void setVolumeId(Integer VolumeId) {
		this.VolumeId = VolumeId;
	}
	
	/**
	 * 获取EmpId
	 * 
	 * @return
	 */
	public Integer getEmpId() {
		return EmpId;
	}

	/**
	 * 设置EmpId
	 * 
	 * @param EmpId
	 */
	public void setEmpId(Integer EmpId) {
		this.EmpId = EmpId;
	}

	@Override
	public String toString() {
		return "RdTask [ID=" + ID + " , ReadYear=" + ReadYear + " , ReadMonth=" + ReadMonth + " , VolumeId=" + VolumeId + " , EmpId=" + EmpId + "  ]";
	
	}
	
	
}
